<?php
namespace Navigation;

class Module
{
	public function getAutoloaderConfig()
	{
		return array(
			'Zend\Loader\ClassMapAutoloader' => array(
				__DIR__ . '/autoload_classmap.php'
			),
			'Zend\Loader\StandardAutoloader' => array(
				'namespaces' => array(
					__NAMESPACE__ => __DIR__ . '/src',
					__NAMESPACE__.'\Admin' => __DIR__ . '/src/Admin',
					__NAMESPACE__.'\Front' => __DIR__ . '/src/Front',
				),
			),
		);
	}
	
	public function getConfig()
	{
		$configModule = include __DIR__ . '/config/module.config.php';
		$configRoutes = include __DIR__ . '/config/routes.config.php';
		
		//$config = \Zend\Stdlib\ArrayUtils::merge($configModule, $configRoutes);
		$config = array_merge($configModule, $configRoutes);
		return $config;
	}
}
